package com.zyh.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private Integer userId;
    private String username;
    private String email;
    private String password;
    private String avatarUrl;
    private Date createdAt;
    private Date updatedAt;
    private Date lastLogin;
    private String bio;
    private String userType;

    public User(String username, String password, String email) {
        this.username = username;
        this.password = password;
        this.email = email;
    }

    public User(Integer userId, String username, String email, String bio) {
        this.userId = userId;
        this.username = username;
        this.email = email;
        this.bio = bio;
    }
}
